package com.ruoyi.projectplan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.projectplan.mapper.XzkProjectPlanMapper;
import com.ruoyi.projectplan.domain.XzkProjectPlan;
import com.ruoyi.projectplan.service.IXzkProjectPlanService;
import com.ruoyi.common.core.text.Convert;

/**
 * 项目计划Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-02
 */
@Service
public class XzkProjectPlanServiceImpl implements IXzkProjectPlanService 
{
    @Autowired
    private XzkProjectPlanMapper xzkProjectPlanMapper;

    /**
     * 查询项目计划
     * 
     * @param planid 项目计划ID
     * @return 项目计划
     */
    @Override
    public XzkProjectPlan selectXzkProjectPlanById(Long planid)
    {
        return xzkProjectPlanMapper.selectXzkProjectPlanById(planid);
    }

    /**
     * 查询项目计划列表
     * 
     * @param xzkProjectPlan 项目计划
     * @return 项目计划
     */
    @Override
    public List<XzkProjectPlan> selectXzkProjectPlanList(XzkProjectPlan xzkProjectPlan)
    {
        return xzkProjectPlanMapper.selectXzkProjectPlanList(xzkProjectPlan);
    }

    /**
     * 新增项目计划
     * 
     * @param xzkProjectPlan 项目计划
     * @return 结果
     */
    @Override
    public int insertXzkProjectPlan(XzkProjectPlan xzkProjectPlan)
    {
        return xzkProjectPlanMapper.insertXzkProjectPlan(xzkProjectPlan);
    }

    /**
     * 修改项目计划
     * 
     * @param xzkProjectPlan 项目计划
     * @return 结果
     */
    @Override
    public int updateXzkProjectPlan(XzkProjectPlan xzkProjectPlan)
    {
        return xzkProjectPlanMapper.updateXzkProjectPlan(xzkProjectPlan);
    }

    /**
     * 删除项目计划对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteXzkProjectPlanByIds(String ids)
    {
        return xzkProjectPlanMapper.deleteXzkProjectPlanByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目计划信息
     * 
     * @param planid 项目计划ID
     * @return 结果
     */
    @Override
    public int deleteXzkProjectPlanById(Long planid)
    {
        return xzkProjectPlanMapper.deleteXzkProjectPlanById(planid);
    }
}
